﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_GroupPages.Admin" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>页面授权列表</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script language="javascript" type="text/javascript">
function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
  {
    var e = form.elements[i];
    if(e.type=="checkbox")
    {
      if (e.name != "chkAll" && e.disabled==false)
        e.checked = form.chkAll.checked;
    }
  }
}
</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label>设置 > 页面授权列表</label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href='./Add.aspx'>添加授权页面</a>
                <a href='javascript:window.history.back();'>返回</a>   
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px;"></span>
</div>
    
    
<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
    <form id="Form1" runat="server">
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">
            
          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">
            <tr>
              <td width="23" height="25" nowrap bgcolor="#DDE9FF"></td>        
              <td align="center" width="40%" nowrap bgcolor="#DDE9FF"><span class="line">页面权限代码</span></td>
              <td align="center" width="40%" bgcolor="#DDE9FF"><span class="line">分组名称</span></td>          
              <td align="center" width="40%" bgcolor="#DDE9FF"><span class="line">页面名称</span></td>
              <td align="center" width="20%" nowrap bgcolor="#DDE9FF"><span class="line">操作</span></td>
            </tr>
            
           <asp:Repeater ID="Repeater_admin" runat="server">
              <ItemTemplate>
                <tr align="center">
                  <td nowrap  bgcolor="#F4FBFF">
                    <asp:CheckBox ID="ID_list" runat="server" />
                    <asp:HiddenField ID="hidid" runat="server" Value='<%#Eval("id") %>' />
                  </td>
                  <td nowrap  bgcolor="#F4FBFF">
                    <%#Eval("codeno")%>
                  </td>              
                  <td nowrap  bgcolor="#F4FBFF">
                    <%#Eval("groupname")%>
                  </td>              
                  <td  bgcolor="#F4FBFF" title='<%#Eval("pagename") %>'><%#Eval("pagename")%></td>
                  <td align="center" nowrap bgcolor="#F4FBFF"><a href='Edit.aspx?codeno=<%#Eval("codeno") %>'>编辑</a> | <a href='Admin.aspx?t=delete&id=<%#Eval("id") %>' onClick="return window.confirm('确定删除 [<%#Eval("id") %>] 吗?');">删除</a></td>
                </tr>
              </ItemTemplate>
            </asp:Repeater>
            <tr>
              <td height="25" colspan="5" bgcolor="#F4FBFF">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(form)" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
                            <img for="chkAll" src="../images/cms-ico12.gif" border="0">
                            <asp:ImageButton ID="ImageButton_all_del" runat="server" 
                                ImageUrl="../images/cms-ico10.gif" style="width: 63px" 
                                onclick="ImageButton_all_del_Click" OnClientClick="return window.confirm('确定删除这些内容吗?');" />                        
                        </td>
                        <td>
                            <asp:Literal ID="litPager" runat="server"></asp:Literal>
                        </td>
                    </tr>
                </table>
              </td>
            </tr>
          </table>


          </td>
        </tr>
      </table>
    </form>

    </td>
  </tr>
 </table>
</div>
</body>
</html>
